package com.longma.server.pojo.dto;

import com.longma.server.constant.enums.UserTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class SysUserAddDTO extends SysUserDTO {
    @ApiModelProperty(value = "用户类型：0超级管理；1普通用户")
    private UserTypeEnum type;

    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空")
    @Length(max = 18,message = "密码最长为18个字符")
    private String password;
}
